package com.ecloud.aiassistantbackground.model.entity;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券表
 * </p>
 *
 * @author Squbirreland
 * @since 2021-04-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("assistant_coupon")
@ApiModel(value = "Coupon对象", description = "优惠券表")
public class Coupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "优惠券id")
    @TableId(value = "coupon_id", type = IdType.AUTO)
    private Integer couponId;

    @ApiModelProperty(value = "优惠券名称")
    private String couponName;

    @ApiModelProperty(value = "优惠券类型 0为开通 1为延时")
    private String couponType;

    @ApiModelProperty(value = "优惠券使用时限 单位为天 -1永久")
    private Integer couponExpiration;

    @ApiModelProperty(value = "优惠券优惠额度 单位为月")
    private Integer couponDiscounts;

    @ApiModelProperty(value = "优惠券说明")
    private String couponExplain;

    @ApiModelProperty(value = "优惠券价格 默认0.00 目前逻辑算作预留字段")
    private BigDecimal couponPrice;

    @ApiModelProperty(value = "优惠券状态 0为下架 1为上架 下架后的优惠券失效")
    private String couponStatus;

    @ApiModelProperty(value = "备用字段1")
    private String couponReserve1;

    @ApiModelProperty(value = "备用字段2")
    private String couponReserve2;

}
